package com.warm.kafkalearn.dao;

import com.warm.kafkalearn.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface UserMapper {

    @Select("SELECT id,username,age,phone,email FROM USERS WHERE AGE=#{age}")
    List<User> getUser(int age);

    User getUserDetailByUid(int uid);

    int updateByPrimaryKeySelective(User user);

    int deleteByPrimaryKey(Integer uid);

}
